<style>
.fui-btn-c {
    height: auto;
    background: #FF547B;
    margin: 0.6rem 0.3rem;
    padding: 0.4rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
	justify-content:center;
	box-shadow: 0 8px 6px #fcd7e0;
    align-items: center;
	color:#fff;
    position: relative;
	border-radius:2rem;
}

.fui-btn-c .icon {
	font-size:1rem;
	padding-right:0.3rem;
	text-align:right;
}

.fui-btn-c .info {
	text-align:left;
    padding-right: 0.2rem;
    font-size: 0.75rem;
}

.fui-btn-c .info p {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
</style>
<div class="fui-page order-create-page fui-page-current">
	<div class="fui-content navbar">
		<div class="fui-page-title r-f" style="font-size:0.7rem"><span>欢迎您 {{pagedata.member.nickname}}</span><span style="margin-left:1rem;color:#FF547B">退出</span><i class="icon icon-bangzhuxiantiao" style="color:#FF547B;margin-left:1rem"></i></div>
		<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
			<div class="carousel-inner" role="listbox" style="height:6rem">
				<div ng-class="{'item':1, 'active':$index==0}" ng-repeat="nav in pagedata.pluginset.hdps">
					<a href="{{nav.url}}">
						<img ng-src="{{tomedia(nav.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
					</a>
				</div>
			</div>
			<style>
					.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
					.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
			</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="nav in pagedata.pluginset.hdps" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
		</div>
		<div class="fui-page-title" style="text-align:left">
		  <div style="font-size:0.8rem">下午好，{{pagedata.member.nickname}}</div>
		  <div><i class="icon icon-map" style="color:#FF547B"></i> <span class="subtitle">附近校区：{{pagedata.list[0].title}} 约{{pagedata.list[0].juli}}公里</span></div>
		</div>
		<a href="javascript:;" ng-click="access_json('jy_edu/store_list/')" class="fui-btn-c">
			<i class="icon icon-xuexi1"></i>
			<div class="info"><div class="bold" style="line-height:1">我要上课</div><div style="line-height:1">Edu now</div></div>
		</a>
		<div class="fui-cell-group fui-cell-click" style="margin-top: 0">
		<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_edu/mylesson_log/')">
			<div class="fui-cell-icon"><i class="icon icon-quanbudingdan"></i></div>
			<div class="fui-cell-text">我的课时</div>
			<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部课时</div>
		</a>
		<div class="fui-icon-group col-3 selecter">
			<a class="fui-icon-col external" href="javascript:;" onclick="$('#show_vipcard').modal();" >
				<div class="icon icon-green radius"><i class="icon icon-fukuanma" style="color:#FF547B"></i></div>
				<div class="text">会员码</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="access_json('jy_edu/worker_list/')">
				<div class="icon icon-orange radius"><i class="icon icon-daifukuan1" style="color:#FF547B"></i></div>
				<div class="text">我的老师</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="access_json('jy_edu/order/')">
				<div class="icon icon-blue radius"><i class="icon icon-paihao0" style="color:#FF547B"></i></div>
				<div class="text">我的报名</div>
			</a>
		</div>
		<div class="fui-picturew row-2" style="padding: 0 0.15rem">
                <a ng-repeat="item in pagedata.shopset.cube" ng-if="$index<=1" class="item" style="padding: 0.15rem;">
                    <div class="image">
                        <img ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
                    </div>
                </a>
		</div>
		<div class="fui-list-group merchgroup">
					<div class="fui-list" ng-repeat="item in pagedata.list">
						<a class="fui-list-media storelogo" href="javascript:;" ng-click="access_json('jy_edu/store_detail//id='+item.id);">
							<img class="round" ng-src="{{tomedia(item.logo) || '../core/resource/images/nopic.jpg'}}">
						</a>
						<a class="fui-list-inner" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_edu/store_detail//id='+item.id);">
							<div class="title" style="font-size:0.76rem">{{item.title}}</div>
							<div class="subtitle">
								<i class="icon icon-map" style="color:#FF547B;font-size:0.6rem"></i> <span style="color:#999">{{item.address || '该校区还未填写地址'}}</span>
							</div>
							<div class="subtitle" style="font-size:0.55rem">
								<div class="store-moneylimit">
								  <span>电话 <span style="color:#FF547B">{{item.mobile || '无'}}</span> </span> | 
								  <span> 上课模式<span style="color:#FF547B"> 课时</span></span>
								</div>
							</div>
							<div class="subtitle" style="font-size:0.55rem">
								<span>上课时间：{{item.worktime.start}}~{{item.worktime.end}}</span>
							</div>
						</a>
				</div>
		</div>
		<div ng-show="loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
	</div>
</div>
<div id="show_vipcard"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="top:30%;">
			<div class="memlogo-area" style="background:url({{tomedia(pagedata.member.cardbg) || '../core/resource/images/cardbg.png'}}) no-repeat 100%">
                    <div class="memlogo">
                        <img ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}">
                    </div>
                    <div class="name">{{pagedata.member.nickname || '匿名'}}</div>
                    <br>
                    <div class="name">{{pagedata.member.mobile || '无手机号'}}</div>
                    <div class="code">
                        <img ng-src="{{tomedia(pagedata.pluginset.logo) || '../addons/jy_weidish/resource/images/logo.png'}}">
                    </div>
                    <div class="bot">
						<img id="barcode"/>
                        <span class="r-f">{{pagedata.member.group}}</span>
                    </div>
            </div>
		</div>
</div>
<script type="text/javascript">
scope.pagedata.params={}
scope.pagedata.post={'sendtype':2}
// 百度地图API功能
window.scope.location(function(re){
	var lat_lng = re.lat_lng;
	scope.tool.get_list('jy_edu/store_list/getlist/limit=5&lat='+lat_lng.lat+'&lng='+lat_lng.lng,true);
});
</script>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<div ng-include="sys_html('common/_coupon',true)"></div>
<div ng-include="sys_html('common/_h5game',true)"></div>